//
//  ShopOrderFootView.m
//  jianpai
//
//  Created by yrapp on 16/1/15.
//  Copyright © 2016年 yrapp. All rights reserved.
//

#import "ShopOrderFootView.h"

@implementation ShopOrderFootView

- (instancetype)initWithFrame:(CGRect)frame {
    self = [super initWithFrame:frame];
    if (self) {
        _priceLabel = [[UILabel alloc] initWithFrame:CGRectMake(0, 0, kWidth / 5 * 3, 50)];
        _priceLabel.backgroundColor = [UIColor colorWithRed:54.0/255 green:54.0/255 blue:54.0/255 alpha:1];
        _priceLabel.textColor = [UIColor whiteColor];
      //  _priceLabel.font = [UIFont systemFontOfSize:15];
        _priceLabel.text = @"  实付款: ￥500.00";
        [self addSubview:_priceLabel];
        
        _subOrderButton = [UIButton buttonWithType:(UIButtonTypeCustom)];
        _subOrderButton.frame = CGRectMake(_priceLabel.frame.size.width, 0, kWidth / 5 * 2, 50);
        _subOrderButton.backgroundColor = [UIColor redColor];
        [_subOrderButton setTitle:@"提交订单" forState:(UIControlStateNormal)];
        [self addSubview:_subOrderButton];
    }
    return self;
}

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
